#ifndef MPHTTPRESPONSESTRINGCONTENT_H
#define MPHTTPRESPONSESTRINGCONTENT_H

/*****************************************
 * HttpResponseStringContent 继承于 HttpResponseContent
 *****************************************/

#include "mpHttpResponseMessage.h"

namespace MP{
namespace HTTP{
namespace INTERNAL{

class HttpResponseStringContent : public HttpResponseContent
{
public:
    HttpResponseStringContent();
    ~HttpResponseStringContent() override = default;

    virtual std::string getData() const override;

    virtual void beginReadData() override;
    virtual void onReadDataSome(const char* data, std::size_t length) override;
    virtual void endReadData() override;

private:
    std::string _data;
};

}   //INTERNAL
}   //HTTP
}   //MP

#endif // MPHTTPRESPONSESTRINGCONTENT_H
